package com.itheima.tlias84.service;

import com.itheima.tlias84.dto.SelectAllDeptDTO;
import com.itheima.tlias84.entity.Dept;
import com.itheima.tlias84.po.InsertDeptParam;
import com.itheima.tlias84.utils.ResultUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptService {
     List<SelectAllDeptDTO> selectAll();

     int insertDept( InsertDeptParam param);

     int deleteById(Integer id);

     SelectAllDeptDTO selectDeptById(Integer id);

     ResultUtil updateDeptById(Dept dept);

     int batchDelete( List<Integer> ids);
}
